@red: #e93030;
@green: #009900;
@blue: #4295f2;
@orange: #ff801a;
@border: #eee;
@gray: #999;
@tabGray: #666;
@bg: #f5f5f5;

@font-face {
  font-family: "DIN";
  src: url("//s.thsi.cn/css/m/fonts/dinstock.ttf");
}

.red {
  color: @red;
}

.green {
  color: @green;
}

.bold {
  font-weight: 700;
}

.border(@color: @border) {
  border-bottom: solid 1px @color;
}

// 设置图片背景
.bgimg(@url) {
  background: url(@url) no-repeat;
  background-size: 100% 100%;
}

// 根据位置设置图片背景
.bgimgpos(@url, @left, @top, @w, @h) {
  background: url(@url);
  background: url(@url);
  background-size: @w @h;
  background-position: @left @top;
}

/* 父元素-flex容器 */
.flex {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

/* 父元素-纵向排列（主轴） */
.flex-v {
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
}

/* 父元素-竖直居中（主轴是横向才生效） */
.flex-vc {
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

/* 父元素-水平居中（主轴是横向才生效） */
.flex-hc {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

/* 子元素-平均分栏 */
.flex1 {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
}

/* 子元素-两边靠 */
.flex-sb {
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-justify-content: space-between;
}

#vuewrap {
  background: #fff;

  #canvas {
    width: 2.7rem;
    height: 1.8rem;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
  }

  .height20 {
    height: 0.2rem;
    width: 100%;
    background: @bg;
  }

  .height80 {
    height: 0.8rem;
    width: 100%;
    background: @bg;
  }

  .limitSummary {
    .yesterdayLimitup {
      .detail {
        padding: 0.3rem 0.3rem 0.4rem;
        position: relative;

        .data {
          width: 60.6%;

          .item {
            float: left;
            padding-right: 0.15rem;

            h4 {
              color: @gray;
              font-size: 0.26rem;
            }

            p {
              padding-top: 0.08rem;
              font-size: 0.32rem;
              font-family: "DIN";
            }
          }

          .item:nth-of-type(2n) {
            padding-right: 0;
          }

          .item:nth-of-type(1),
          .item:nth-of-type(2) {
            padding-bottom: 0.4rem;
          }
        }

        .flex;
        .flex-sb;
        .flex-vc;

        .meter {
          width: 2.9rem;
          height: 1.8rem;
          margin-left: 0.2rem;
          margin-bottom: 0.2rem;

          .label {
            width: 2.5rem;
            position: absolute;
            right: 0.5rem;

            .small {
              color: @green;
              float: left;
            }

            .big {
              color: @red;
              float: right;
            }
          }
        }
      }
    }
  }

  .limitDetail {
    .type {
      h4 {
        padding: 0 0.3rem;
        height: 0.88rem;
        line-height: 0.88rem;
        font-size: 0.26rem;
      }

      ul {
        padding: 0 0.3rem;
        padding-bottom: 0.1rem;

        li {
          display: inline-block;
          width: 47.8%;
          height: 0.72rem;
          background: @bg;
          position: relative;
          margin-right: 3.7%;
          -webkit-box-sizing: border-box;
          box-sizing: border-box;
          padding: 0 0.2rem;
          border-radius: 0.04rem;
          margin-bottom: 0.12rem;

          .name {
            position: absolute;
            left: 0.2rem;
            top: 50%;
            -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
            color: #666;
            font-size: 0.28rem;
          }

          div {
            position: absolute;
            right: 0.2rem;
            top: 50%;
            -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
            text-align: right;

            p:nth-of-type(1) {
              font-size: 0.3rem;
              font-family: "DIN";
            }

            p:nth-of-type(2) {
              font-size: 0.24rem;
            }
          }
        }

        li:nth-of-type(2n) {
          margin-right: 0;
        }
      }

      .more {
        text-align: center;
        padding-bottom: 0.2rem;
        color: @gray;
        font-size: 0.24rem;
      }
    }

    .highest {
      ul {
        li {
          height: 1.04rem;
        }
      }
    }
  }

  .brokenLine {
    h4 {
      padding: 0 0.3rem;
      height: 0.88rem;
      line-height: 0.88rem;
      font-size: 0.26rem;
    }

    ul {
      padding: 0 0.3rem;
      padding-bottom: 0.26rem;

      li {
        display: inline-block;
        color: #666;
        font-size: 0.24rem;
        padding-right: 0.4rem;

        &:before {
          content: "";
          margin-right: 0.1rem;
          display: inline-block;
          vertical-align: middle;
          width: 0.12rem;
          height: 0.12rem;
          border-radius: 50%;
        }
      }

      li:nth-of-type(1) {
        &:before {
          background: #fea31e;
        }
      }

      li:nth-of-type(2) {
        &:before {
          background: #4691ee;
        }
      }

      li:nth-of-type(3) {
        &:before {
          background: #e93030;
        }
      }
    }

    #chart {
      margin: 0 auto;
    }

    .date {
      padding: 0 0.3rem;
      padding-top: 0.05rem;
      padding-bottom: 0.25rem;
      font-size: .24rem;
      color: #666;

      span:nth-of-type(1) {
        float: left;
      }

      span:nth-of-type(2) {
        float: right;
      }
    }
  }
}